<?php
   class Intro extends MY_Controller{
	   public function __construct(){
		   parent::__construct();
		   $this->load->helper("url");
		   $this->load->model("mindex");
		   $this->load->model("model_home");
		   $this->load->model("model_technology");
	   }
	   public function index(){	
	       $id = $this->uri->segment(1);
	   	   $data['introduc']    = $this->intro();
	       $data['newest'] 		= $this->new_posts();
		   $data['support'] 	= $this->support();
		   $data['access'] 		= $this->access();
		   $data['online'] 		= $this->online();
		   $data['config'] 		= $this->config();
		   $data['students']    = $this->model_home->random_student();
		   $data['eq'] 			= "1";
		   $data['topeq'] 			= "10";
		   $data['links'] = base_url().uri_string().".html";
		   $data['intro'] 		= $this->mindex->intro($id);
		   if($data['intro'] == NULL){ redirect(base_url()."home/notfound");}
		   $data['title'] 		= $data['intro']['in_name'];
		   $this->load->view("introduction/layout",$data);
	   }
   }